import sys
from os.path import abspath, join, dirname, curdir

sys.path.insert(0, join(abspath(dirname(__file__)), ''))
print(sys.path)

import pkg_test.sub_pkg1.moduleY as moduleY

# import moduleY.Spam

spam = moduleY.Spam
print(spam)
print(abspath(curdir))
